package com.partvoyage.client.service.login;

import com.google.appengine.api.users.User;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.partvoyage.client.service.login.exception.NoAccessException;
import com.partvoyage.client.service.login.exception.UserNotLoggedException;
import com.partvoyage.shared.ClientConstants;

@RemoteServiceRelativePath("oauth")
public interface OAuthService extends RemoteService {
	User checkAccess(ClientConstants.AppScope scope)
			throws UserNotLoggedException, NoAccessException;

	void login() throws UserNotLoggedException;
	void test();
	
}
